package y24.m4;

public class Test5 {
    public static void main(String[] args) {
        int a = 1,b = 2;
        float c = 1.0f,d = 2.1f;
        double e = 1.1,f = 1.3;
        System.out.println(max(a,b));
        System.out.println(max(c,d));
        System.out.println(max(e,f));
    }

    private static int max(int a, int b) {
        return a >= b ? a : b;
    }
    private static float max(float a, float b) {
        return a >= b ? a : b;
    }
    private static double max(double a, double b) {
        return a >= b ? a : b;
    }
}
